<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::head('首页')">
    <style th:inline="text">
        body{
            background: url("[[@{/}]]img/1.jpg");
        }
    </style>
    <meta charset="UTF-8"/>
    <title>新建图书</title>
</head>
<body>
<div th:replace="~{layout::header}"></div>
<div class="container" style="margin-left:400px">
    <h3 >添加图书</h3>

    <form  th:action="@{/book/add}" method="post">

        <label w >图书id</label>         <input type="text"  name="id" ></br>
        <label>图书isbn:</label>     <input type="text"  name="isbn" ></br>
        <label>图书名: </label>       <input type="text"  name="name" ></br>
        <label>作者:</label>          <input type="text"  name="author" ></br>
        <label>出版社:</label>        <input type="text"  name="publish" ></br>
        <label>价格:</label>          <input type="text"  name="price" ></br>
        <label> 图书类别: </label>      <input type="text"  name="cat_id" ></br>




             <input type="submit" value="保存" />
             <input type="reset" value="重填" />
             <a th:href="@{/book/list}" >返回</a>

    </form>
</div>
</body>
</html>